
const reducer = (state: any, action: any) => {
  if (action.type === 'add') {
    return {
      ...state,
      count: state.count + 1,
    }
  } else {
    return state
  }
}

export default reducer
